package dreamdancetiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

type SyncTask struct {
	Id              int64          `gorm:"column:id;type:bigint;primaryKey;autoIncrement"`
	Name            string         `gorm:"column:name;type:varchar(100);not null;default:''"`
	TaskStatus      int64          `gorm:"column:task_status;type:bigint;not null"`
	Topic           string         `gorm:"column:topic;type:varchar(100);not null;default:''"`
	ConsumerGroup   string         `gorm:"column:consumer_group;type:varchar(50);not null;default:''"`
	Processor       string         `gorm:"column:processor;type:varchar(100);not null;default:''"`
	ProcessorConfig string         `gorm:"column:processor_config;type:text"`
	CreatedAt       time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	DeletedAt       gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
